<?php

namespace app\Model;

use libs\qoy\Model\ModelNotORM;

/**
 * Description of Main
 */
class UserModel extends ModelNotORM {

    protected function getTableName($id) {
        return "user";
    }

    public function __construct() {
        
    }

    public function fetch($where) {
        return $this->getORM()->where($where)->fetch();
    }

    public function count($where) {
        return $this->getORM()->where($where)->count("");
    }

    public function lists($where,$select=null) {
        return $this->getORM()->select($select ? $select:"id,name,icon,content")->where($where);
    }
    
    
}
